<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MyJsp.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	 <script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>
  <script type="text/javascript">
	function tijiao() {
			var neirong = editor.txt.html();//获取富文本区域里面的文字
			$('#nbody').val(neirong);
		}
	</script>
   </head>
  
  
  
  <body>
  <div id="dyn" style="width: 700px ;margin: 50px auto;" >
        <c:forEach items="${list}" var="l">
        <div style="width: 600px; height: 100px; margin: 30px auto; border-width: 0 0 1px 0; border-style: solid;
    border-color: #019875">
        <h3 style="font-weight: 700">${l.fname}</h3>
        <p>${l.ftext}</p>
        <span style="float:right">${l.ftime}<a href="ForumServlet?op=forum4&fid=${l.fid}&aa=${index}">删除</a></span>
        </div></c:forEach>
         <div style="width: 600px;height: 50px; margin: 0 auto">
       <div style=" margin-left: 130px">
                <input type="button" onclick="shou()" value="首页">
                <input type="button" onclick="shang(${index })" value="上一页" >
                <input type="button" onclick="xia(${index })" value="下一页" >
                <input type="button" onclick="wei()" value="尾页">
                <span>当前页数[${index }]&nbsp;&nbsp;总页数[${pagecount}]</span>
        </div>
        </div>
        </div>
  </body>
</html>
